package com.bjut.dao;

import java.util.List;

import com.bjut.domain.Employee;
import com.bjut.domain.User;

public interface UserDao {
	public void save(User user);
	public void save(Employee user);
	public User get(int id);

	public void delete(User user);

	public void delete(int id);

	public void update(User user);

	public User findById(int id);

	public User findUserByUsername(String username);

	public User findUserByUsernameAndPassword(String username, String password);

	public List<User> findAllByPage(int pageNo, int pageSize);

	public long getCount();

}
